//
//  UIScrollView+MY_MJRefresh.h
//  Zhuangpin
//
//  Created by Robin on 2016/10/9.
//  Copyright © 2016年 linbei. All rights reserved.//

#import <Foundation/Foundation.h>

///用来封装MJRefresh
@interface UIScrollView (MY_MJRefresh)

///用block添加刷新
- (void)addRefreshBlock:(void (^)())block;
///用SEL添加刷新
- (void)addRefreshTarget:(id)target action:(SEL)action;
///开始刷新
- (void)beginRefreshing;
///结束刷新
- (void)endRefreshing;
///是否在刷新中
- (BOOL)isRefreshing;
///用block添加加载更多
- (void)addLoadMoreBlock:(void (^)())block;
///用SEL添加加载更多
- (void)addLoadMoreTarget:(id)target action:(SEL)action;
///开始加载更多
- (void)beginLoadMore;
///是否在加载更多
- (BOOL)isLoadMoreing;
///结束加载更多
- (void)endLoadMore;
///结束刷新和加载更多
- (void)endRefreshAndLoadMore;

@end
